package com.mapper;

import com.entity.Student;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface StudentDao {
    int deleteByPrimaryKey(Integer id);

    int insert(Student record);

    int delete(@Param("idstr") String idstr);

    int insertSelective(Student record);

    Student selectByPrimaryKey(Integer id);

    List<Student> findAll();

    List<Student> find(Student record);


   int find12(Student record);

    int updateByPrimaryKeySelective(Student record);

    int updateByPrimaryKey(Student record);

    int selectByname(@Param("username") String username);

    int selectByid(@Param("id") Integer id);

    String selectNameByid(@Param("id") Integer id);


    Integer selectIdByName(@Param("username") String username);


    int updateByStudent(Student record);
}